﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using DAL;

namespace BLL
{
    public class BOLop
    {
        private Lop _lop;

        public BOLop()
        {
            _lop = new Lop();
        }

        public DataSet Binding()
        {
            return _lop.GetDataSet();
        }

        public int AddLop(string tenLop, int ky)
        {
            return _lop.Add(tenLop, ky);
        }

        #region "Tìm kiếm theo tên giảng viên"
        public DataSet SearchByTenLop(string tenLop)
        {
            return _lop.SearchByTenLop(tenLop);
        }
        #endregion

        #region "Tìm kiếm theo tên môn học"
        public DataSet SearchByKy(int ky)
        {
            return _lop.SearchByKy(ky);
        }
        #endregion

        #region "Update thông tin lớp"
        public int Update(string tenLop, int ky)
        {
            return _lop.Update(tenLop, ky);
        }
        #endregion
    }
}
